package tpoo;
public class Case
{
    private int x;
    private int y;
    
    private final String IMFREE = "I'm Freeeeee";
    
    Piece piece;

    public Case()
    {
    }
    
    public int getX(){
        return this.x;
    }

    public int getY(){
        return this.y;
    }
    
    public void setX(int x){
        this.x = x;
    }
    

    public void setY(int y){
        this.y = y;
    }
    
    public void setPiece(Piece piece){
        this.piece = piece;
    }
    
    public String ambiance(){
        if(this.piece == null){
			return IMFREE;
        }else{            
            return this.piece.commentCaVa();
        }
    }
}
